#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>

void execute_command(char *command) {
    pid_t pid = fork();

    if (pid == 0) {
        // Child process
        execlp("/bin/sh", "sh", "-c", command, (char *)NULL);
        perror("execlp");
        exit(1);
    } else if (pid > 0) {
        // Parent process
        wait(NULL);
    } else {
        printf("Failed to fork\n");
    }
}